//
//  FindTableViewCell.m
//  PhoenixNews
//
//  Created by dllo on 16/1/19.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FindTableViewCell.h"

@implementation FindTableViewCell

- (void)dealloc {
    [_imageViewTwo release];
    [_imageViewThree release];
    [_imageViewFour release];
    [_image release];
    [_lable release];
    [_title release];
    [_subtitle release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.image = [[UIImageView alloc] init];
        [self.contentView addSubview:_image];
        [_image release];
        
       self.imageViewTwo = [[UIImageView alloc] init];
        [self.contentView addSubview:_imageViewTwo];
        [_imageViewTwo release];
        
        self.lable = [[UILabel alloc] init];
        [self.contentView addSubview:_lable];
        [_lable release];
        
        self.title = [[UILabel alloc] init];
        [self.contentView addSubview:_title];
        [_title release];
        
        self.subtitle = [[UILabel alloc] init];
        [self.contentView addSubview:_subtitle];
        [_subtitle release];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.image.frame = CGRectMake(0, 60, self.frame.size.width, 200);
    self.imageViewTwo.frame = CGRectMake(20, 30, 60, 60);
    self.lable.frame = CGRectMake(90, 30, 120, 40);
    
    self.title.frame = CGRectMake(20, 280, self.frame.size.width, 40);
    self.title.font = [UIFont systemFontOfSize:18];
    self.subtitle.frame = CGRectMake(20, 340, self.frame.size.width, 40);
    self.subtitle.alpha = 0.7;
    self.subtitle.font = [UIFont systemFontOfSize:13];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
